const Mock = require('mockjs')

module.exports = Mock.mock({
	"list|50": [{
		"id": '@id',
		"images|4-8": ["@image(120x80, @color)"],
		"title": '@ctitle',
		"desc": '@cword(10, 30)',
		"price|10-1000": 1,
		"totalCount|1000-100000": 1,
		"comment|5-10": [{
			"id": "@id",
			"nickname": '@cname',
			"avator": "@image(50x50, @color)",
			"content": '@cword(20, 50)',
			"zan|10-100": 1,
			"createTime": "@datetime"
		}]
	}]
})